name := "ClientServer"

version := "1.0"

scalaVersion := "2.11.8"

//libraryDependencies +=  "com.typesafe.akka" % "akka-actor_2.11" % "2.4.4"

libraryDependencies ++= {
  val akkaVersion = "2.4.4"  //定义一个akka版本变量
  Seq(
    "com.typesafe.akka" %% "akka-actor" % akkaVersion,  //使用%自动加入版本号，相当于"com.typesafe.akka" % "akka-actor_2.11" % akkaVersion
    "com.typesafe.akka" %% "akka-remote" % akkaVersion,
    "com.typesafe.akka" %% "akka-cluster" % akkaVersion,
    "com.typesafe.akka" %% "akka-cluster-tools" % akkaVersion,
    "com.typesafe.akka" %% "akka-http-experimental" % akkaVersion, //http相关
    "com.typesafe.akka" %% "akka-http-spray-json-experimental" % akkaVersion
  )
}

resolvers += "Akka Snapshot Repository" at "http://repo.akka.io/snapshots/"